var conf = new Array();
<?php	
	//getting config
	foreach ($this->config->config as $key => $value) 
	{
		// generate output lang['key'] = 'value';
		$value_tmp = str_replace('\'', '\\\'', $value);
		$value_tmp = str_replace("\r", '\\n', $value_tmp);
		echo 'conf[\'',$key,'\']=\'',$value_tmp,'\';',"\n";
	}
	//getting constants

	$constants	= get_defined_constants(true);
	$data		= $constants['user'];
	foreach ($data as $key => $value) 
	{
		// generate output lang['key'] = 'value';
		$value_tmp = str_replace('\'', '\\\'', $value);
		$value_tmp = str_replace("\r", '\\n', $value_tmp);
		$value_tmp = str_replace("\\", '/', $value_tmp);
		echo 'conf[\'',$key,'\']=\'',$value_tmp,'\';',"\n";
	}
?>
